package com.haiyou.oss.alibaba.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * OSS配置
 */

@ConfigurationProperties(prefix = AliOSSProperties.PREFIX)
@Data
public class AliOSSProperties {
    /**
     * 服务配置前缀名
     */
    public static final String PREFIX = "ali.oss";
    /**
     * 是否可用
     */
    private boolean enable;
    /**
     * accessKeyId
     */
    private String accessKeyId;
    /**
     * accessSecret
     */
    private String accessSecret;
    /**
     * 签名
     */
    private String endpoint;
    /**
     * 存储桶
     */
    private String bucketName;

    /**
     * 是否压缩，默认为true
     */
    private Boolean isGzip = true;
    /**
     * 角色授权
     * https://help.aliyun.com/document_detail/100624.html?spm=a2c4g.11186623.2.15.6ddb4164yDsTnj#concept-xzh-nzk-2gb
     */
    private String roleArn;


}
